package com.victor.entity.happy;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.victor.entity.User;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 娱乐评论表 TODO 缺二级评论
 * 
 * @author zhangbin
 *
 */
@Entity
@Table(name = "happy_comment")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class HappyComment {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "c_id", unique = true, nullable = false, length = 11)
	private Integer c_id;// 主键

	@Column(name = "h_id", length = 50)
	private String h_id;// 娱乐表id

	@Column(name = "c_content", length = 50)
	private String c_content;// 评论内容

	@Column(name = "c_time", length = 50)
	private String c_time;// 评论时间

	@Column(name = "ifanonymous", length = 50)
	private String ifanonymous;// 是否匿名 0 正常,1匿名

	@Column(name = "c_goodorbad", length = 50)
	private String c_goodorbad;// 评论好中差

	@Column(name = "userid", length = 50)
	private String userid;// 评论人id

	@Transient
	private String pricenum;// 评论点赞书

	@Transient
	private String commentnum;// 评论数

	@Transient
	private List<HappyCommentPhoto> happyCommentPhotos;// 评论上传多张图片

	@Transient
	private User user;// 获取评论人头像 昵称等
}
